<ion-view view-title="申请">
    <ion-content>
        <div class="list">
            <li class="item item-input">
                <span class="input-label">
				标题
			</span>
                <input type="text" placeholder="请输入标题" ng-model="input.title"/>
            </li>
            <li class="item item-input">
                <span class="input-label">
				推送信息
			</span>
                <textarea rows="5" placeholder="请输入推送信息" style="padding-right: 44px;" ng-model="input.content"></textarea>
            </li>
            <li class="item item-input-inset">
               	区域:
                   <div class="input-value small" ng-click="doSelectProvince()">{{input.province.name}}</div>
                   <div class="input-value small" ng-click="doSelectCity()">{{input.city.name}}</div>
                   <div class="input-value small" ng-click="doSelectDistrict()">{{input.district.name}}</div>
                <i class="icon ion-plus-circled positive font-1rem-my" on-tap="add_region()"></i>
            </li>
            <li class="item item-icon-right font-middle-my" ng-repeat="region in regions">
				<span ng-class="{invisible:$index>0}">区域：</span>{{region}}
                <i class="icon ion-close-circled assertive font-1rem-my" on-tap="delete_region($index)"></i>
            </li>
            <li class="item item-input-inset">
                品类:
                <div class="input-value small" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
                <div class="input-value small" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
                <div class="input-value small" ng-click="doSelectCat3()">{{input.cat3.name}}</div>	
                <i class="icon ion-plus-circled positive font-1rem-my" on-tap="add_act_type()"></i>
            </li>
            <li class="item item-icon-right font-middle-my" ng-repeat="cat in cats">
				<span ng-class="{invisible:$index>0}">品类：</span>{{cat}}
                <i class="icon ion-close-circled assertive font-1rem-my" on-tap="delete_act_type($index)"></i>
            </li>
            <li class="item item-input-inset" style="padding-bottom: 0;">
       	         推送对象：
                <label class="checkbox checkbox-square padding-0">
					<input type="checkbox" id="agent_id" ng-model="input.stores[0]"/>
				</label><label for="agent_id">旗舰店</label>
                <!--<label class="checkbox checkbox-square padding-0 margin-left-10-my">
					<input type="checkbox" id="dealer_id" ng-model="input.stores[1]"/>
				</label><label for="dealer_id">品牌运营商</label>-->
				<label class="checkbox checkbox-square padding-0 margin-left-10-my">
					<input type="checkbox" id="maker_id" ng-model="input.stores[2]"/>
				</label><label for="maker_id">授权中心</label>
                <label class="checkbox checkbox-square padding-0 margin-left-10-my">
					<input type="checkbox" id="brand_id" ng-model="input.stores[3]"/>
				</label><label for="brand_id">加盟店</label>
            </li>
            <!--<li class="item item-input-inset item-borderless" style="padding-top: 0;">
                <span class="invisible">推送对象：</span>
                <label class="checkbox checkbox-square padding-0">
					<input type="checkbox" id="maker_id" ng-model="input.stores[2]"/>
				</label><label for="maker_id">授权中心</label>
                <label class="checkbox checkbox-square padding-0 margin-left-10-my">
					<input type="checkbox" id="brand_id" ng-model="input.stores[3]"/>
				</label><label for="brand_id">加盟店</label>
            </li>-->
            <li class="item item-input-inset">
                	推送方式：
                <label class="checkbox checkbox-square padding-0">
				<input type="checkbox" id="innermsg_id" ng-model="input.method[0]"/>
			</label><label for="innermsg_id">站内信</label>
                <label class="checkbox checkbox-square padding-0 margin-left-10-my">
				<input type="checkbox" id="app_id" ng-model="input.method[1]"/>
			</label><label for="app_id">APP</label>
            </li>
        </div>

        <div class="padding">
            <button class="button button-block button-assertive" on-tap="save()">提交</button>
        </div>

    </ion-content>
</ion-view>